package com.run;

import org.testng.annotations.Test;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.databene.benerator.anno.Source;
import org.databene.feed4testng.FeedTest;
import org.testng.Assert;
import org.testng.annotations.Test;
import com.alibaba.fastjson.JSONObject;
import com.client.HttpClient;;

public class RunDataCase extends FeedTest {
	/**
	 * Created by YQR on 2017/12/6.
	 */
	
	private static Log log=LogFactory.getLog(RunDataCase.class);
	
	@Test(dataProvider="feeder")
	@Source("data/data.xls")
	public void HttpClient(String url,String bodyParams){	
		 HttpClient.doPostJson(url,bodyParams);
//	    JSONObject	result = HttpClient.doPostJson(url,bodyParams);		
//		Assert.assertTrue(result.containsValue("蜜舐椴树蜂蜜"));
	    
	 
	}
	

}
